package errcode

var (
	ErrorGetUserListFail  = NewError(20010001, "获取用户列表失败")
	ErrorCreateUserFail   = NewError(20010002, "创建用户失败")
	ErrorUpdateUserFail   = NewError(20010003, "更新用户失败")
	ErrorDeleteUserFail   = NewError(20010004, "删除用户失败")
	ErrorCountUserFail    = NewError(20010005, "统计用户失败")
	ErrorFindUserByIdFail = NewError(20010006, "根据id查找用户失败")

	ErrorCreateTeamFail     = NewError(20010012, "创建团队失败")
	ErrorDeleteTeamFail     = NewError(20010014, "删除团队失败")
	ErrorCountTeamFail      = NewError(20010015, "统计团队失败")
	ErrorGetListListFail    = NewError(20010016, "获取团队列表失败")
	ErrorUpdateTeamFail     = NewError(20010017, "更新团队失败")
	ErrorFindByIdTeamFail   = NewError(20010018, "根据id获取团队失败")
	ErrorFindByNameTeamFail = NewError(20010019, "根据name获取团队失败")
	ErrorTeamNameDuplicate  = NewError(20010020, "同一用户创建团队名称重复")
	ErrorFindTeamRecordFail = NewError(20010021, "未查到该条团队记录")

	ErrorCreateUserTeamFail           = NewError(20010022, "用户申请加入团队失败")
	ErrorCreateUserTeamFailTeamIsFull = NewError(20010221, "用户申请加入团队失败，团队人员已满")
	ErrorCountUserTeamUserFail        = NewError(20010105, "获取团队下的用户请求加入团队列表数量失败")
	ErrorCountUserTeamTeamFail        = NewError(20010106, "获取用户下的团队列表数量失败")
	ErrorGetUserTeamUserListFail      = NewError(20010107, "获取团队下的用户请求加入团队列表失败")
	ErrorGetUserTeamTeamListFail      = NewError(20010108, "获取用户下的团队列表失败")
	ErrorUserTeamAgreeFail            = NewError(20010109, "接受用户加入团队失败")
	ErrorUserTeamFindByIdFail         = NewError(20010110, "根据id查找用户和团队关系失败")
	ErrorFindTeamByIdFail             = NewError(20010111, "根据id查找团队失败")
	ErrorUserExcludeTeam              = NewError(20010112, "该用户下无此团队")
	ErrorUserTeamRefuseFail           = NewError(20010113, "拒绝用户加入团队失败")
	ErrorCountUTTeamByTNFail          = NewError(20010114, "根据团队名获取加入的团队数量失败")
	ErrorGetUTTeamListByTNFail        = NewError(20010115, "根据团队名获取加入的团队列表失败")
	ErrorUserLeaveTeamFail            = NewError(20010116, "用户离开团队失败")
	ErrorFindUserTeamRecordFail       = NewError(20010117, "未查到该条用户团队关系记录")
)
